<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/static/commons/taglibs.jsp"%>
<%@ include file="/static/commons/meta.jsp"%>
<%@ include file="/static/commons/ecside.jsp"%>
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>${title}</title>
		<script type="text/javascript" src="${ctx}/static/scripts/check_all.js"></script>
		<script type="text/javascript" src="${ctx}/static/widgets/lodop/LodopFuncs.js"></script>

		<script type="text/javascript">
			function init(){
				parent.waiting_stop();
			}
			function changeStyle(obj){
			  	ec_showContent(obj,"700px");
			}
//			function batchPrinting() {
//
//			    for(var i=0;i<3;i++){
//                    LODOP=getLodop();
//
//                    LODOP.PRINT_INIT("打印控件功能演示_Lodop功能_同时打印俩网址");
//                    LODOP.ADD_PRINT_URL(30,20,"100%","100%","http://www.baidu.com");
//                    LODOP.ADD_PRINT_URL(1100,20,"100%","100%","http://www.baidu.com");
//                    LODOP.SET_PRINT_STYLEA(0,"HOrient",2);
//                    LODOP.SET_PRINT_STYLEA(0,"VOrient",3);
//                    LODOP.SET_PRINT_MODE("PRINT_DUPLEX",2);//0-不控制 1-不双面 2-双面(长边装订) 3-小册子双面(短边装订_长边水平)
//                    LODOP.SET_PRINT_MODE("PRINT_DEFAULTSOURCE",1);//1-纸盒 4-手动 7-自动 0-不控制
//                    LODOP.SET_PRINT_MODE("DOUBLE_SIDED_PRINT",true);//如打印机无双面打印功能，也可手工实现，此时需true
//
//					LODOP.print();
//
//                }
//
//
//            }
		</script>
	</head>
	<object  id="LODOP_OB" classid="clsid:2105C259-1E0C-4534-8141-A753534CB4CA" width=0 height=0>
		<embed id="LODOP_EM" type="application/x-print-lodop" width=0 height=0></embed>
	</object>
	<body onload="init()">
		<ec:table items="list" var="v" title="" width="100%"
			retrieveRowsCallback="process" filterRowsCallback="process"
			maxRowsExported="1000" pageSizeList="15,30,50,all" useAjax="false"
			rowsDisplayed="15" sortable="false" filterable="false"
			resizeColWidth="true" classic="true" minHeight="200"
			excludeParameters="checkAll,ID_,id"
			toolbarContent="extend status|pagejump|navigation|pagesize|refresh"
			action="${ctx}/makeController/list">
			<ec:row style="text-align:center;">
				<ec:column property="ID_"
					title="<input type='checkbox' name='checkAll' onclick='check_all(this.form,this.form.id)'>"
					style="text-align:center;width:34px;" sortable="false">
					<input type='checkbox' value='${v.cust_id}@@${v.device_type }@@${v.order_id}' name='id' id="id"
						onclick="check_item(this.form,this.form.id)" ></input>
				</ec:column>
				<ec:column property="serial" title="序号" style="text-align:center;width:30px;">${GLOBALROWCOUNT}</ec:column>
				<ec:column property="order_id" title="订单号">${v.order_id}</ec:column>
				<ec:column property="cust_name" title="单位">${v.cust_name}</ec:column>
				<ec:column property="device_type_name" title="设备类型">${v.device_type_name}</ec:column>
				<ec:column property="receive_date" title="送修日期">${v.receive_date}</ec:column>
				<ec:column property="num2" title="制作证书"><a href="javascript:void(0)" onclick="parent.view('${v.cust_id}','${v.device_type }','${v.order_id}')">制作证书</a></ec:column>
				<ec:column property="type" title="批量打印"><a href="javascript:void(0)" onclick="parent.batchPrintCert('${v.order_id}')">打印</a></ec:column>
				<%--<ec:column property="status" title="鉴定证书清单"><a href="${ctx}/makeController/showCertificateList?orderId=${v.order_id}&deviceType=${v.device_type}" target="_blank">查看</a></ec:column>--%>
				<ec:column property="status" title="鉴定证书清单"><a href="javascript:void(0)" onclick="parent.printCertList('${v.order_id}','${v.device_type }')" target="_blank">查看</a></ec:column>
			</ec:row>
		</ec:table>
	</body>
</html>